package com.frost.aop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
//@Component
@Aspect
@Order(2) // 不写 2 默认最低级
public class AspectDemo4 {

    @Before("com.frost.aop.aspect.AspectDemo.pt()")
    public void doBefore() {
        log.info("执行AspectDemo.doBefore4 方法");
    }

    @After("com.frost.aop.aspect.AspectDemo.pt()")
    public void doAfter() {
        log.info("执行AspectDemo.doAfter4 方法");
    }

}
